from typing import Any

from aiogram.filters import Filter
from aiogram.types import Message


class StartsWith(Filter):
    def __init__(self, my_text: str) -> None:
        self.my_text = my_text.lower()
    
    async def __call__(self, message: Message) -> Any:
        return message.text.lower().startswith(self.my_text)